Connecting to MYSQL with Python 2 in three steps. 1 - Setting. You must install a MySQL driver before doing anything. Unlike PHP, Only the ... ... <看更多>
You have to install the MySQLdb package: sudo apt-get update. then sudo apt-get install python3-dev libmysqlclient-dev. This took a while and finally: ... <看更多>
python MySQLdb. install. sudo apt install python-mysqldb. after install, there might be some errors like "cannot find MySQLdb". usually it ... ... <看更多>